package cn.usts.deu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
    @RequestMapping("/hello1")
    public String hello1(Model model){
        model.addAttribute("msg","注解实现多个方法-1");
        return "hello";
    }

    @RequestMapping("/hello2")
    public String hello2(Model model){
        model.addAttribute("msg", "注解实现多个方法-2");
        return "hello2";
    }
}
